翻訳と辞書
Words near each other
・ Non Zero Sumness
・ Non è gratis
・ Non è l'inferno
・ Non è la RAI
・ Non è vero... ma ci credo
・ Non, je ne regrette rien
・ Non, à jamais sans toi
・ Non-24-hour sleep–wake disorder
・ Non-abelian
・ Non-abelian class field theory
・ Non-abelian gauge transformation
・ Non-abelian group
・ Non-abidance
・ Non-access stratum
・ Non-achromatic objective
Non-adjacent form
・ Non-affiliated members of the House of Lords
・ Non-aggression pact
・ Non-aggression Pact (band)
・ Non-aggression pact of 1979
・ Non-aggression principle
・ Non-Agricultural Market Access
・ Non-alcoholic beverage
・ Non-alcoholic fatty liver disease
・ Non-alcoholic mixed drink
・ Non-aligned Coalition
・ Non-Aligned Foreign Ministers Conference
・ Non-Aligned Movement
・ Non-Aligned News Agencies Pool
・ Non-aligned Scouting and Scout-like organisations


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Non-adjacent form : ウィキペディア英語版
Non-adjacent form

The non-adjacent form (NAF) of a number is a unique signed-digit representation. Like the name suggests, non-zero values cannot be adjacent. For example:
:(0 1 1 1)2 = 4 + 2 + 1 = 7
:(1 0 −1 1)2 = 8 − 2 + 1 = 7
:(1 −1 1 1)2 = 8 − 4 + 2 + 1 = 7
:(1 0 0 −1)2 = 8 − 1 = 7
All are valid signed-digit representations of 7, but only the final representation, (1 0 0 −1), is in NAF.
==Properties==
NAF assures a unique representation of an integer, but the main benefit of it is that the Hamming weight of the value will be minimal. For regular binary representations of values, half of all bits will be non-zero, on average, but with NAF this drops to only one-third of all digits.
Obviously, at most half of the digits are non-zero, which was the reason it was introduced by G.W. Reitweisner 〔George W. Reitwiesner, ''Binary Arithmetic'', Advances in Computers, 1960.〕 for speeding up early multiplication algorithms, much like Booth encoding.
Because every non-zero digit has to be adjacent to two 0s, the NAF representation can be implemented such that it only takes a maximum of ''m'' + 1 bits for a value that would normally be represented in binary with ''m'' bits.
The properties of NAF make it useful in various algorithms, especially some in cryptography; e.g., for reducing the number of multiplications needed for performing an exponentiation. In the algorithm, exponentiation by squaring, the number of multiplications depends on the number of non-zero bits. If the exponent here is given in NAF form, a digit value 1 implies a multiplication by the base, and a digit value −1 by its reciprocal.
Other ways of encoding integers that avoid consecutive 1s include Booth encoding and Fibonacci coding.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Non-adjacent form」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.